package com.eorchis.module.trainingneeds.domain;

import java.math.BigInteger;
import java.util.Date;
import java.util.List;

import com.eorchis.utils.DateUtil;
import com.eorchis.utils.utils.PropertyUtil;

/**
 * Title: QueryQuestionnaireBean<br>
 * Description: 查询培训需求题库返回的实体对象<br>
 * @author HuangTF
 * @createDate 2014-2-7
 * @version $Revision$
 */
public class QueryQuestionBankBean 
{
	private String questionId;//试题ID
	private String questionName;//试题题干
	private String questionType;//试题题型
	private String userName;//创建人
	private Date createDate;//创建时间
	private String createDateStr;//创建时间字符串
	private List<QuestionOptionBean> questionOption;//选择题选项集合
	private String questionOptionStr;//选项集合字符串
	private String optionNum;//选项编号
	private String optionName;//选项名称
	private String depName;//单位名称
	private String questionAnswer;//调查人提交的答案
	private Integer orderNum;//问题序号(题号)
	private Integer wordNum;//问答题字数上限(null为不限字数)
	private Integer isSelected;//是否被选为调查问卷试题   1：是,且问卷已发布   2：是，问卷未发布	3：否
	private BigInteger isSelectedBig;
	private Integer isMust;//问卷试题是否必填	1:是	2:否
	private String questionnaireQuestionId;//问卷试题关系ID
	private Integer isScoreType;//是否为数值型
	private String questionsProblemSets;//试题题组
	private Integer objectiveTopic;//多选题是否为客观题1:是     除1之外全部为否
	private Integer ROWNUM_ ;
	
	
	
	public Integer getObjectiveTopic() {
		return objectiveTopic;
	}
	public void setObjectiveTopic(Integer objectiveTopic) {
		this.objectiveTopic = objectiveTopic;
	}
	public String getQuestionnaireQuestionId()
	{
		return questionnaireQuestionId;
	}
	public void setQuestionnaireQuestionId(String questionnaireQuestionId)
	{
		this.questionnaireQuestionId = questionnaireQuestionId;
	}
	public Integer getIsMust()
	{
		return isMust;
	}
	public void setIsMust(Integer isMust)
	{
		this.isMust = isMust;
	}
	public BigInteger getIsSelectedBig() {
		return isSelectedBig;
	}
	public void setIsSelectedBig(BigInteger isSelectedBig) {
		if(PropertyUtil.objectNotEmpty(isSelectedBig))
		{
			this.setIsSelected(isSelectedBig.intValue());
		}
		this.isSelectedBig = isSelectedBig;
	}
	public Integer getIsSelected() {
		return isSelected;
	}
	public void setIsSelected(Integer isSelected) {
		this.isSelected = isSelected;
	}
	public Integer getWordNum() {
		return wordNum;
	}
	public void setWordNum(Integer wordNum) {
		this.wordNum = wordNum;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getQuestionAnswer() {
		return questionAnswer;
	}
	public void setQuestionAnswer(String questionAnswer) {
		this.questionAnswer = questionAnswer;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	public List<QuestionOptionBean> getQuestionOption() {
		return questionOption;
	}
	public void setQuestionOption(List<QuestionOptionBean> questionOption) {
		this.questionOption = questionOption;
	}
	public String getQuestionOptionStr() {
		return questionOptionStr;
	}
	public void setQuestionOptionStr(String questionOptionStr) {
		this.questionOptionStr = questionOptionStr;
	}
	public String getOptionNum()
	{
		return optionNum;
	}
	public void setOptionNum(String optionNum)
	{
		this.optionNum = optionNum;
	}
	public String getOptionName()
	{
		return optionName;
	}
	public void setOptionName(String optionName)
	{
		this.optionName = optionName;
	}
	public String getQuestionId() {
		return questionId;
	}
	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	public String getQuestionName() {
		return questionName;
	}
	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}
	public String getQuestionType() {
		return questionType;
	}
	public void setQuestionType(String questionType) {
		this.questionType = questionType;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		if(PropertyUtil.objectNotEmpty(createDate))
		{
			this.setCreateDateStr(DateUtil.getDateString(createDate, "yyyy-MM-dd"));
		}
		this.createDate = createDate;
	}
	public String getCreateDateStr() {
		return createDateStr;
	}
	public void setCreateDateStr(String createDateStr) {
		this.createDateStr = createDateStr;
	}
	public Integer getIsScoreType() {
		return isScoreType;
	}
	public void setIsScoreType(Integer isScoreType) {
		this.isScoreType = isScoreType;
	}
	public String getQuestionsProblemSets() {
		return questionsProblemSets;
	}
	public void setQuestionsProblemSets(String questionsProblemSets) {
		this.questionsProblemSets = questionsProblemSets;
	}
	public Integer getROWNUM_() {
		return ROWNUM_;
	}
	public void setROWNUM_(Integer rOWNUM_) {
		ROWNUM_ = rOWNUM_;
	}
}
